﻿using System;
using System.Runtime.InteropServices;
using Ast.Core.WinApi;

namespace Ast.Core.Services.ObjectDefinitions
{
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
    public struct ObjectHeaderNameInfo : ISpecificObjectHeaderInfo
    {
        public IntPtr Directory; // +0x000 Directory        : Ptr32 _OBJECT_DIRECTORY

        public Structure.UnicodeString Name; // +0x004 Name             : _UNICODE_STRING

        public int ReferenceCount; // +0x00c ReferenceCount   : Int4B

        public InfoMaskType Type
        {
            get { return InfoMaskType.NameInfo; }
        }
    }
}